package com.chinasoft.zhangwei;

import com.chinasoft.teacher.TrueWord;

import java.util.ArrayList;
import java.util.List;
import java.util.Random;

public class ZhangWei implements TrueWord {
    List<String> wordList = new ArrayList<>();
    Random random = new Random();

    public ZhangWei() {
        wordList.add("今天晚上卡通片《成龙历险记》");
        wordList.add("原来我也是帕鲁");
        wordList.add("QQ已经63级了");

    }

    @Override
    public String getName() {
        return "张维";
    }

    @Override
    public String getWords() {
        // 得到随机数
        int index = random.nextInt(wordList.size());
        return wordList.get(index);
    }
}
